import QtQuick 2.0

Item {
    id:root
    property url source
    property url pressedSource

    signal clicked
    Image{
        id:image

        fillMode: Image.PreserveAspectFit
        source: mouseArea.pressed ? root.pressedSource : root.source
    }

    MouseArea{
        id:mouseArea

        anchors.fill: parent
        onClicked: {
            root.clicked()
        }
    }
}
